/*
 * @Author: wukunling 13022195532@163.com
 * @Date: 2025-01-11 14:13:27
 * @LastEditors: wukunling 13022195532@163.com
 * @LastEditTime: 2025-01-11 14:38:10
 * @FilePath: /xzzshop-miniprogram-main/pages/privacy/index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const api = require("../../config/api.js");
const app = getApp()

Page({
    data: {
        info: {}
    },
     getChannelShowInfo: function (e) {
        util.request(api.ShowSettings).then(function (res) {
          if (res.errno === 0) {
            let privacy = res.data.privacy;
            this.setData({
                info: app.globalData.info,
                privacy:privacy
            })
          }
        });
      },
    onLoad: function () {
        this.setData({
            info: app.globalData.info
        })
        this.getChannelShowInfo();
    },
})
